<!DOCTYPE html>
<html>
<head>
    <title>我的游记</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/userTravels.css"/>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css"/>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <script src="/js/common.js"></script>
    <script src="/js/checkLogin.js"></script>
    <script src="/js/queryAndBlank.js"></script>
    <script src="/js/plugins/mdialog/mDialog.js"></script>
    <link rel="stylesheet" href="/css/dialog.css"/>

    <script>
       $(function () {

       $("#ss").click(function () {
           Dialog.init('<input  type="text" placeholder="请输入你的评论"  style="margin:8px 0;width:100%;padding:11px 8px;font-size:15px; border:1px solid #999;"/>', {
               title: '输入点什么吧！',
               button: {
                   确定: function () {
                           $.post(baseUrl + '/comments', comment, function (data) {
                               if (data.success) {
                                   //提示
                                   Dialog.init('评论成功', 1000);
                                   Dialog.close(this);
                                   setTimeout(function () {
                                       window.location.reload();
                                   }, 900);
                               } else {
                                   $(document).dialog({
                                       type: 'alert',
                                       content: data.errorMsg,
                                       autoClose: 2000
                                   });
                               }
                           })

                   },
                   关闭: function () {
                       Dialog.close(this);
                   }
               }
           });

       })
       })
    </script>

</head>

<body>
<button id="ss">1</button>
</body>
</html>
